home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / raytr / r3frmapp.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  7.8 KB  |  257 lines

  1.  
  2. // JavaScript wrapper for r3frmapp.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_FRMAPPING_H = 1;
  7. include("real/raytr/r3frhob.js")
  8.  
  9.  
  10. var R3CLID_FRMAPPING = 164;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Searches given object list, compares source name and stores address of the matching object
  16. // p3: r3List, addres of the list header to be searched from    
  17.  
  18. R3FRMM_LINKTOSOURCE = 164000;
  19.  
  20. function mR3FRMM_LINKTOSOURCE(p3) {
  21.   DoA(this.r3obj, 164000, p3, R3TID_LIST, 0);
  22. }
  23.  
  24. // Description: Signals that sources & mappings are ready, optimizations for rendering can be executed
  25.  
  26. R3FRMM_OPTIMIZEMAPPING = 164001;
  27.  
  28. function mR3FRMM_OPTIMIZEMAPPING() {
  29.   DoA(this.r3obj, 164001, 0, R3TID_INTEGER, 0);
  30. }
  31.  
  32. // Description: report channels that are referenced as inputs (by the mapping itself or linked sub
  33. //      objects) * in EVALUATE method using a given callback method to the given callback object.
  34. //      Some systems may want to know in advance (e.g for optimization & resource allocation)
  35. //      which channels will be referenced as inputs by the object. The callback goes as:
  36. //      R3SendMsgA2(p1, p3, usedphases, channelname) * where usedphase is the union of all bits (1<<phaseindex)
  37. //      where channel is used (use value from * caller if unknown).
  38. // p1: Object, callback object
  39. // p2: Integer, phase mask. Only channels in defined phases will be reported. A particular phase is
  40. //      indicated by 1<<phaseindex. 0xFFFFFFFF includes all phases.
  41. // p3: Integer, callback method    
  42.  
  43. R3FRMM_ENUMINPUTCHANNELS = 164002;
  44.  
  45. function mR3FRMM_ENUMINPUTCHANNELS(p1, p2, p3) {
  46.   DoA3(this.r3obj, 164002, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  47. }
  48.  
  49. // Description: report channels affected (by the mapping itself or linked sub objects) in EVALUATE method
  50. //      using a given callback method to the given callback object. Some systems may want to
  51. //      know in advance (e.g for optimization & resource allocation) which channels will be affected by
  52. //      the object.
  53. // p1: Object, callback object
  54. // p2: Integer, phase mask. Only channels in defined phases will be reported. A particular phase is
  55. //      indicated by 1<<phaseindex. 0xFFFFFFFF includes all phases.
  56. // p3: Integer, callback method    
  57.  
  58. R3FRMM_ENUMOUTPUTCHANNELS = 164003;
  59.  
  60. function mR3FRMM_ENUMOUTPUTCHANNELS(p1, p2, p3) {
  61.   DoA3(this.r3obj, 164003, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  62. }
  63.  
  64. // Description: Asks which material evaluation phases are being used    * Normally mapping sends query to the
  65. //      material/effect linked to it
  66.  
  67. R3FRMM_PHASEQUERY = 164004;
  68.  
  69. function mR3FRMM_PHASEQUERY() {
  70.   DoA(this.r3obj, 164004, 0, R3TID_INTEGER, 0);
  71. }
  72.  
  73. // Description: enumerates material etc. objects linked to this mapping * by R3SendMsgA(cbobj, cbmth, mappedobject);
  74.  
  75. R3FRMM_ENUMMAPPEDOBJECTS = 164005;
  76.  
  77. function mR3FRMM_ENUMMAPPEDOBJECTS() {
  78.   DoA(this.r3obj, 164005, 0, R3TID_INTEGER, 0);
  79. }
  80.  
  81.  
  82. R3FRMM_REGISTEROUTPUTCHANNEL = 164006;
  83.  
  84. function mR3FRMM_REGISTEROUTPUTCHANNEL() {
  85.   DoA(this.r3obj, 164006, 0, R3TID_INTEGER, 0);
  86. }
  87.  
  88.  
  89. R3FRMM_ANALYZESCOPE = 164007;
  90.  
  91. function mR3FRMM_ANALYZESCOPE() {
  92.   DoA(this.r3obj, 164007, 0, R3TID_INTEGER, 0);
  93. }
  94.  
  95. // Description: Evluate mapping coordinate projection
  96. // p1: r3Vect, point to be projected
  97. // p3: r3Vect, the result of mapping is stored here.    
  98.  
  99. R3FRMM_EVALMAPCOORDS = 164008;
  100.  
  101. function mR3FRMM_EVALMAPCOORDS(p1, p3) {
  102.   DoA2(this.r3obj, 164008, p1, R3TID_VECTOR, 0, p3, R3TID_VECTOR, 0);
  103. }
  104.  
  105.  
  106.  
  107.  
  108. R3FRMA_SourceName = 164500;
  109. function SetR3FRMA_SourceName(value) {
  110.   R3Set(this.r3obj, R3FRMA_SourceName, value, R3TID_STRING, 0); 
  111. }
  112.  
  113. function GetR3FRMA_SourceName() {
  114.   return R3Get(this.r3obj, R3FRMA_SourceName, R3TID_STRING, 0); 
  115. }
  116.  
  117. R3FRMA_Priority = 164501;
  118. function SetR3FRMA_Priority(value) {
  119.   R3Set(this.r3obj, R3FRMA_Priority, value, R3TID_INTEGER, 0); 
  120. }
  121.  
  122. function GetR3FRMA_Priority() {
  123.   return R3Get(this.r3obj, R3FRMA_Priority, R3TID_INTEGER, 0); 
  124. }
  125.  
  126. R3FRMA_SrcBaseClass = 164502;
  127. function SetR3FRMA_SrcBaseClass(value) {
  128.   R3Set(this.r3obj, R3FRMA_SrcBaseClass, value, R3TID_INTEGER, 0); 
  129. }
  130.  
  131. function GetR3FRMA_SrcBaseClass() {
  132.   return R3Get(this.r3obj, R3FRMA_SrcBaseClass, R3TID_INTEGER, 0); 
  133. }
  134.  
  135. R3FRMA_Source = 164503;
  136. function GetR3FRMA_Source() {
  137.   return R3ToJS(R3Get(this.r3obj, R3FRMA_Source, R3TID_OBJECT, R3TNF_ARRAY)); 
  138. }
  139.  
  140. R3FRMA_ImgX = 164504;
  141. function SetR3FRMA_ImgX(value) {
  142.   R3Set(this.r3obj, R3FRMA_ImgX, value, R3TID_FLOAT, 0); 
  143. }
  144.  
  145. R3FRMA_ImgY = 164505;
  146. function SetR3FRMA_ImgY(value) {
  147.   R3Set(this.r3obj, R3FRMA_ImgY, value, R3TID_FLOAT, 0); 
  148. }
  149.  
  150. R3FRMA_ImgW = 164506;
  151. function SetR3FRMA_ImgW(value) {
  152.   R3Set(this.r3obj, R3FRMA_ImgW, value, R3TID_FLOAT, 0); 
  153. }
  154.  
  155. R3FRMA_ImgH = 164507;
  156. function SetR3FRMA_ImgH(value) {
  157.   R3Set(this.r3obj, R3FRMA_ImgH, value, R3TID_FLOAT, 0); 
  158. }
  159.  
  160. R3FRMA_Hor = 164508;
  161. function SetR3FRMA_Hor(value) {
  162.   R3Set(this.r3obj, R3FRMA_Hor, value, R3TID_VECTOR, 0); 
  163. }
  164.  
  165. R3FRMA_Projection = 164511;
  166. function SetR3FRMA_Projection(value) {
  167.   R3Set(this.r3obj, R3FRMA_Projection, value, R3TID_INTEGER, 0); 
  168. }
  169.  
  170. R3FRMA_Matrix = 164512;
  171. function SetR3FRMA_Matrix(value) {
  172.   R3Set(this.r3obj, R3FRMA_Matrix, value, R3TID_MATRIX, 0); 
  173. }
  174.  
  175. R3FRMA_FiniteDimensions = 164513;
  176. function SetR3FRMA_FiniteDimensions(value) {
  177.   R3Set(this.r3obj, R3FRMA_FiniteDimensions, value, R3TID_INTEGER, 0); 
  178. }
  179.  
  180. R3FRMA_Scope = 164514;
  181. function SetR3FRMA_Scope(value) {
  182.   R3Set(this.r3obj, R3FRMA_Scope, value, R3TID_FLOAT, 0); 
  183. }
  184.  
  185. R3FRMA_ScopeBlend = 164515;
  186. function SetR3FRMA_ScopeBlend(value) {
  187.   R3Set(this.r3obj, R3FRMA_ScopeBlend, value, R3TID_BOOLEAN, 0); 
  188. }
  189.  
  190. R3FRMA_WeakProperty = 164516;
  191. function GetR3FRMA_WeakProperty() {
  192.   return R3Get(this.r3obj, R3FRMA_WeakProperty, R3TID_STRING, 0); 
  193. }
  194.  
  195. R3FRMA_EvaluateAlways = 164520;
  196. function SetR3FRMA_EvaluateAlways(value) {
  197.   R3Set(this.r3obj, R3FRMA_EvaluateAlways, value, R3TID_INTEGER, 0); 
  198. }
  199.  
  200. function GetR3FRMA_EvaluateAlways() {
  201.   return R3Get(this.r3obj, R3FRMA_EvaluateAlways, R3TID_INTEGER, 0); 
  202. }
  203.  
  204. R3FRMA_AutoLink = 164521;
  205. function GetR3FRMA_AutoLink() {
  206.   return R3Get(this.r3obj, R3FRMA_AutoLink, R3TID_BOOLEAN, 0); 
  207. }
  208.  
  209. var R3FRM_PERSPECTIVE = 0;
  210. var R3FRM_ORTHOGRAPHIC = 1;
  211. var R3FRM_FINITE_X = 1;
  212. var R3FRM_FINITE_Y = 2;
  213. var R3FRM_FINITE_Z = 4;
  214.  
  215.  
  216. function r3Frmapping () { 
  217.    this.base = r3God;
  218.    if(arguments.length) {
  219.       this.base(R3CLID_FRMAPPING, arguments);
  220.    }
  221.    // Methods
  222.    this.LINKTOSOURCE=mR3FRMM_LINKTOSOURCE;
  223.    this.OPTIMIZEMAPPING=mR3FRMM_OPTIMIZEMAPPING;
  224.    this.ENUMINPUTCHANNELS=mR3FRMM_ENUMINPUTCHANNELS;
  225.    this.ENUMOUTPUTCHANNELS=mR3FRMM_ENUMOUTPUTCHANNELS;
  226.    this.PHASEQUERY=mR3FRMM_PHASEQUERY;
  227.    this.ENUMMAPPEDOBJECTS=mR3FRMM_ENUMMAPPEDOBJECTS;
  228.    this.REGISTEROUTPUTCHANNEL=mR3FRMM_REGISTEROUTPUTCHANNEL;
  229.    this.ANALYZESCOPE=mR3FRMM_ANALYZESCOPE;
  230.    this.EVALMAPCOORDS=mR3FRMM_EVALMAPCOORDS;
  231.  
  232.    // Attributes
  233.    this.GetSourceName=GetR3FRMA_SourceName;
  234.    this.SetSourceName=SetR3FRMA_SourceName;
  235.    this.GetPriority=GetR3FRMA_Priority;
  236.    this.SetPriority=SetR3FRMA_Priority;
  237.    this.GetSrcBaseClass=GetR3FRMA_SrcBaseClass;
  238.    this.SetSrcBaseClass=SetR3FRMA_SrcBaseClass;
  239.    this.GetSource=GetR3FRMA_Source;
  240.    this.SetImgX=SetR3FRMA_ImgX;
  241.    this.SetImgY=SetR3FRMA_ImgY;
  242.    this.SetImgW=SetR3FRMA_ImgW;
  243.    this.SetImgH=SetR3FRMA_ImgH;
  244.    this.SetHor=SetR3FRMA_Hor;
  245.    this.SetProjection=SetR3FRMA_Projection;
  246.    this.SetMatrix=SetR3FRMA_Matrix;
  247.    this.SetFiniteDimensions=SetR3FRMA_FiniteDimensions;
  248.    this.SetScope=SetR3FRMA_Scope;
  249.    this.SetScopeBlend=SetR3FRMA_ScopeBlend;
  250.    this.GetWeakProperty=GetR3FRMA_WeakProperty;
  251.    this.GetEvaluateAlways=GetR3FRMA_EvaluateAlways;
  252.    this.SetEvaluateAlways=SetR3FRMA_EvaluateAlways;
  253.    this.GetAutoLink=GetR3FRMA_AutoLink;
  254. }
  255.  
  256. r3Frmapping.prototype=new r3Frhob;
  257. // r3frmapp.h_H